function fPopUpCalendarDlg1(ctrlobj) {
  showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
  showy = event.screenY - event.offsetY + 18; // + deltaY;
  newWINwidth = 210 + 4 + 18;

  retval = window.showModalDialog("/pub/js/calendar/CalendarDlg.htm", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:" + showx + "px; dialogTop:" + showy + "px; status:no; directories:yes;scrollbars:no;Resizable=no; "  );
  if( retval != null ) {
    ctrlobj.value = retval;
  } else {
    //alert("canceled");
  }
}
function fPopUpCalendarDlg(ctrlobj,hiddenobj) {
  showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
  showy = event.screenY - event.offsetY + 18; // + deltaY;
  newWINwidth = 210 + 4 + 18;
  retval = window.showModalDialog("/pub/js/calendar/CalendarDlg.htm", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:" + showx + "px; dialogTop:" + showy + "px; status:no; directories:yes;scrollbars:no;Resizable=no; "  );
  if( retval != null ) {
    ctrlobj.value = retval;
    var str=retval;
    str=str.substring(0,4)+str.substring(5,7) +str.substring(8,10);
    hiddenobj.value=str;
  } else {
    //alert("canceled");
  }
}


